﻿using System;
using System.Device.Location;
using System.Windows;
using Microsoft.Phone.Controls;
using System.Collections.ObjectModel;
using STS.Model;

namespace AugmentedReality
{
    /// <summary>
    /// Punkt wejścia do biblioteki AR
    /// </summary>
    public class AR
    {
        /// <summary>
        /// Ładuje główną stronę biblioteki
        /// </summary>
        public static void Start(object value, string lang, ObservableCollection<Poi> pois)
        {
            ModelOfPoi.Pois = pois;
            var _mainFrame = Application.Current.RootVisual as PhoneApplicationFrame;
            if (_mainFrame != null)
            {
                _mainFrame.Navigate(new Uri("/AugmentedReality;component/MainPageAR.xaml?value=" + value + "&lang=" + lang, UriKind.Relative));
            }
        }
    }
}
